﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OpenMms.Domain.RequestModels
{
    /// <summary>
    /// 会员注册请求Model
    /// </summary>
    public class RegisterReq
    {

        /// <summary>
        /// 用户信息表主键 会员ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 服务中心编号
        /// </summary>
        public string ServiceCentreCode { get; set; }
        /// <summary>
        /// 推荐人编号
        /// </summary>
        public string RefereeCode { get; set; }
        /// <summary>
        /// 接点人编号
        /// </summary>
        public string ContactCode { get; set; }
        /// <summary>
        /// 推荐人ID
        /// </summary>
        public int RefereeId { get; set; }
        /// <summary>
        /// 接点人ID
        /// </summary>
        public int ContactId { get; set; }


        /// <summary>
        /// 会员编号
        /// </summary>
        public string UserCode { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string UserPassWord { get; set; }
        /// <summary>
        /// 二级密码
        /// </summary>
        public string UserSecondPassWord { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegistionTime { get { return DateTime.Parse(DateTime.Now.ToString()); } }

        /// <summary>
        /// 激活时间
        /// </summary>
        public DateTime ActivationTime { get; set; }
        /// <summary>
        /// 会员级别
        /// </summary>
        public Int16 UserLevel { get; set; }
    }
        /// <summary>
        /// 会员级别枚举
        /// </summary>
        public enum UserLevel
        {
            普通会员 = 1,
            高级会员 = 2,
            钻石会员 = 3
        }
        /// <summary>
        /// 会员状态枚举
        /// </summary>
        public enum UserState
        {
            未激活 = 0,
            已激活 = 1,
            已冻结 = 2
        }
    }
